package reserve.utility;
import java.io.*;

public class Blank {

	public static String toBlank(String s) {
	
		String[] str = new String[s.length()];
		String value = "";
		boolean b = true;

		for (int i=0; i<str.length; i++){
			if ( (s.charAt(i)+"").equals("<") ) {
				b = false;
			}
			else if ( (s.charAt(i)+"").equals(">") )	{
				b = true;
			}
			if ( (s.charAt(i)+"").equals(" ") ) {
				if (b)	{
					str[i] = "&nbsp;";
				}
				else {
					str[i] = s.charAt(i) + "";
				}
			}
			else {
				str[i] = s.charAt(i) + "";
			}
			value += str[i];
		}
		return value;
	}
}
